package com.sky.mapper;

import com.sky.entity.SetmealDish;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    //判断菜品是否关联了套餐
    List<Long> getByDishId(List<Long> ids);



    //添加套餐菜品数据
    void save(List<SetmealDish> list);

    //根据套餐id查询套餐菜品
    List<SetmealDish> getSetmealDishBySetmealId(Long id);

    //根据id删除套餐与菜品关系
    void deleteBySetmealId(Long id);

    //根据套餐id查询菜品选项
    List<DishItemVO> getDishItmBySetmealId(Long setmealId);
}
